package com.heima.apis.user;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-user")
public interface IApAuthClient {
    /**
     * 用户审核查询列表
     * @param authDto
     * @return
     */
    @PostMapping("/api/v1/list")
    @ApiOperation("查询列表")
    public ResponseResult listAuth(@RequestBody AuthDto authDto);


    /**
     * 审核失败
     * @param authDto
     * @return
     */
    @PostMapping("/api/v1/authFail")
    @ApiOperation("审核失败")
    public ResponseResult authFail(@RequestBody AuthDto authDto);

    /**
     * 审核成功
     * @param authDto
     * @return
     */
    @PostMapping("/api/v1/authPass")
    @ApiOperation("审核成功")
    public ResponseResult authPass(@RequestBody AuthDto authDto);
}
